/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Framework;

/**
 *
 * @author WanbooUIT
 */

public class CRect 
{

    public float x;
    public float y;
    public float w;
    public float h;

    public CRect(float xx, float yy, float ww, float hh) {
        x = xx;
        y = yy;
        w = ww;
        h = hh;
    }

    public boolean Containt(float xx, float yy) {
        if (xx >= x && xx <= x + w && yy >= y && yy <= y + h) {
            return true;
        } else {
            return false;
        }
    }
    
    public boolean Containt(CVector2D p){
        return this.Containt(p.x, p.y);
    }
}
